const mongoose = require("./db");
const goodSchema = mongoose.Schema({
    name:String,//名称
    imgs:String,//商品图片
    price: Number,//商品单价
    tag:String,//商品标签
    desc: Array,//描述,
    num:Number,
    price1:Number,//商品原价
    classid:{//所属分类
        type:mongoose.Types.ObjectId,
        ref:'classify'
    },
    storeid:{
        type:mongoose.Types.ObjectId,
        ref:"store"
    }
})
const goodModel = mongoose.model("good", goodSchema, "good")
module.exports = { goodModel }
